import java.util.Arrays;

public class Test {
    public static void bubbleSort(int[] arr) {
        for(int i = 6; i > 0; i--) {
            for(int j = 0; j < i; j++) {
                if(arr[j] > arr[j + 1]) {
                    int tmp = arr[j];
                    arr[j] = arr[i];
                    arr[i] = tmp;
                }
            }
        }
    }
    public static void main(String[] args) {
        int[] arr = {11, 34, 1, 54, 2, 22, 132};
        bubbleSort(arr);
        System.out.println(Arrays.toString(arr));
    }
}
